student information using array of object java

91

student information using array of object java -

class Student {
	private String name;
	private int grade;
	private String email;

	public Student(String name, int grade, String email) {

		this.name = name;
		this.grade = grade;
		this.email = email;
	}

	public String toString() {

		return name + " " + grade + " " + email;
	}
}

Comments

Submit
0 Comments